<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<title>bug info</title>
<link rel="stylesheet" href="css/result.css" />
<link rel="stylesheet" href="css/bugInfo.css" />
</head>
<body>
	<form action="bugInfoController/findByDescription" method="post">
		<div class="main">
			<div class="header">
				<input type="text" class="content" /> <input type="submit"
					class="submit" value="BUG" />
			</div>
			<div class="float_left">
				<div class="body">
					<c:if test="${list!=null }">
						<c:forEach var="li" items="${list }">
							<div class="info">
								<a href="bugInfoController/findByBugId?bugId=${li.bugId }">${li.description
									}</a>
								<p>${li.solution }</p>
							</div>
						</c:forEach>
					</c:if>
				</div>
				<div class="footer">

					<c:forEach items="${pageNumber }" var="bug" varStatus="number">

						<ul>
							<li><a
								href="bugInfoController/findByDescription?indexPage=${number.count }&description=${description }">${number.count }</a>
							</li>

						</ul>
					</c:forEach>

					<%-- <a>1</a><
					<a href="bugInfoController/findByDescription?indexPage=${indexPage-1 }&description=${list.description }">下一页</a> --%>
				</div>
			</div>

			<div class="float_right">
				<div class="line"></div>
				<div class="ad">预留广告区域</div>
			</div>
		</div>
	</form>
</body>

</html>